<!--{loop $versions $v}-->
<li class="list-group-item d-flex justify-content-between align-items-start version_menu" id="version_{$v[vid]}">
    <div class="unameMenu-upload">
    <div class="fw-bold text-truncate"><!--{if !$v['vname']}-->$v['username']<!--{else}-->$v[vname]<!--{/if}--></div>
    <div class="versioninfos">
        {eval echo dgmdate($v['dateline'],'u');}
        <!--{if $fileinfo['vid'] == $v['vid']}--><span class="badge badge-outline-primary">{lang principal_edition}</span><!--{/if}-->
    </div>
    </div>
    <span class="editMenu">{eval echo formatsize($v['size']);}</span>
    <a href="javascript:;" class="group-editMenu dropdown-toggle fs-5" data-toggle="dropdown"></a>
    <ul class="dropdown-menu dropdown-menu-version">
        <li><a class="dropdown-item" href="javascript:;" data-rid="$v[rid]" data-vid="$v[vid]" onclick="infoversion(this)"><i class="mdi mdi-information-variant"></i><span class="file-text">{lang version_information}</span></a></li>
        <li>
            <a href="javascript:;" class="view_versions dropdown-item" data-dpath="$fileinfo[dpath]" data-vid="$v[vid]" onclick="viewversion(this)">
                <i class="mdi mdi-eye"></i><span class="file-text">{lang view_version}</span>
            </a>
        </li>
        <!--{if $fileinfo['editperm']}-->
        <!--{if $v[vid]}-->
        <li>
            <a href="javascript:;" class="primary_versions dropdown-item" data-vid="$v[vid]" <!--{if $fileinfo['vid'] == $v['vid']}-->data-primary="yes"<!--{else}--> data-primary="no"<!--{/if}--> onclick="primaryVersion(this)"><i class="mdi mdi-flare"></i><span class="file-text">{lang sign_principal_edition}</span></a>
        </li>
        <!--{/if}-->
        <li>
            <a href="javascript:;" class="edit_versions dropdown-item" data-rid="$fileinfo[rid]" data-vid="$v[vid]" onclick="editVersionName(this)">
                <i class="mdi mdi-pencil"></i><span class="file-text">{lang edit_version_information}</span>
            </a>
        </li>
        <!--{if $v[vid]}-->
        <li>
            <a href="javascript:;" class="delete_versions dropdown-item" data-rid="$fileinfo[rid]" data-vid="$v[vid]" onclick="deletethisversion(this)">
                <i class="mdi mdi-delete"></i><span class="file-text">{lang delete_this_version}</span>
            </a>
        </li>
        <!--{/if}-->
        <!--{/if}-->
    </ul>
</li>
<!--{/loop}-->
<!--{if $vnext}-->
<li class="mb-1 d-grid btn_button_more">
    <a href="javascript:;" class="btn btn-link btn-sm text-end" onclick="loadMoreVersion(this,'{$vnext}');" data-rid="{$rid}">{lang upload_more}</a>
</li>
<!--{/if}-->